package com.example.bpmn.config;

import org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration;
import org.camunda.bpm.spring.boot.starter.configuration.impl.AbstractCamundaConfiguration;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CamundaConfig extends AbstractCamundaConfiguration {
    
    @Override
    public void preInit(SpringProcessEngineConfiguration processEngineConfiguration) {
        processEngineConfiguration.setJobExecutorActivate(true);
        processEngineConfiguration.setJobExecutorDeploymentAware(false);
        processEngineConfiguration.setJobExecutorPreferTimerJobs(false);
        processEngineConfiguration.setJobExecutorAcquireByDueDate(true);
        processEngineConfiguration.setEnsureJobDueDateNotNull(false);
    }
} 